package neo.tetris.bean.model.tetris;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;


public class TetrisFrame extends JFrame {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	JLabel statusbar;

    public TetrisFrame() {
    	super();

        statusbar = new JLabel(" 0");
        add(statusbar, BorderLayout.SOUTH);
        BoardPanel board = new BoardPanel(this);
        add(board);
        board.start();

        setSize(200, 400);
        setTitle("Tetris");
        setDefaultCloseOperation(EXIT_ON_CLOSE);
   }

   public JLabel getStatusBar() {
       return statusbar;
   }

    public static void main(String[] args) {
        TetrisFrame game = new TetrisFrame();
        game.setLocationRelativeTo(null);
        game.setVisible(true);
    } 
}